package bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Transient;

@Entity
public class OrderItemBean {
//    @Id
//    private int id;
    private int specId;
@Id
private Long id;   // Long 类型，数据库自增
    private String orderId;
    private int goodsId;
    private int productId;
    private String sn;
    private String bn;
    private String name;
    private double price;
    private double costprice;
    private double mktprice;
    private String imageUrl;
    private int nums;
    private double amount;
    private double promotionAmount;
    private String promotionList;
    private double weight;
    private int sendNums;
    private String addon;
    private String createTime;
    private String updateTime;
    private String Unit;
    private double promotionPrice;
    private String pk_material1;
    private String bar_code;

    public String getBar_code() {
        return bar_code;
    }

    public void setBar_code(String bar_code) {
        this.bar_code = bar_code;
    }

    public String getPk_material1() {
        return pk_material1;
    }

    public void setPk_material1(String pk_material1) {
        this.pk_material1 = pk_material1;
    }

    public double getPromotionPrice() {
        return promotionPrice;
    }

    public void setPromotionPrice(double promotionPrice) {
        this.promotionPrice = promotionPrice;
    }

    public String getUnit() {
        return Unit;
    }

    public void setUnit(String unit) {
        Unit = unit;
    }

    @Generated(hash = 63029002)
    public OrderItemBean(int specId, Long id, String orderId, int goodsId,
            int productId, String sn, String bn, String name, double price,
            double costprice, double mktprice, String imageUrl, int nums,
            double amount, double promotionAmount, String promotionList,
            double weight, int sendNums, String addon, String createTime,
            String updateTime, String Unit, double promotionPrice,
            String pk_material1, String bar_code) {
        this.specId = specId;
        this.id = id;
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.productId = productId;
        this.sn = sn;
        this.bn = bn;
        this.name = name;
        this.price = price;
        this.costprice = costprice;
        this.mktprice = mktprice;
        this.imageUrl = imageUrl;
        this.nums = nums;
        this.amount = amount;
        this.promotionAmount = promotionAmount;
        this.promotionList = promotionList;
        this.weight = weight;
        this.sendNums = sendNums;
        this.addon = addon;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.Unit = Unit;
        this.promotionPrice = promotionPrice;
        this.pk_material1 = pk_material1;
        this.bar_code = bar_code;
    }

    @Generated(hash = 659879016)
    public OrderItemBean() {
    }


    public int getSpecId() {
        return specId;
    }

    public void setSpecId(int specId) {
        this.specId = specId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getBn() {
        return bn;
    }

    public void setBn(String bn) {
        this.bn = bn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getCostprice() {
        return costprice;
    }

    public void setCostprice(double costprice) {
        this.costprice = costprice;
    }

    public double getMktprice() {
        return mktprice;
    }

    public void setMktprice(double mktprice) {
        this.mktprice = mktprice;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public int getNums() {
        return nums;
    }

    public void setNums(int nums) {
        this.nums = nums;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public double getPromotionAmount() {
        return promotionAmount;
    }

    public void setPromotionAmount(double promotionAmount) {
        this.promotionAmount = promotionAmount;
    }

    public String getPromotionList() {
        return promotionList;
    }

    public void setPromotionList(String promotionList) {
        this.promotionList = promotionList;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public int getSendNums() {
        return sendNums;
    }

    public void setSendNums(int sendNums) {
        this.sendNums = sendNums;
    }

    public String getAddon() {
        return addon;
    }

    public void setAddon(String addon) {
        this.addon = addon;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
